package com.example.sys.org.dao;

import com.example.core.dao.BaseDao;
import com.example.sys.org.model.SysOrgRole;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface SysOrgRoleDao extends BaseDao<SysOrgRole> {

    @Query(value = "from SysOrgRole where fdCode =:roleCode")
    public SysOrgRole getRoleByCode(@Param("roleCode") String roleCode);
}
